 <div class="ui-droplist-wrap" id="staff_droplist_wrap"  style="position: absolute; top: 30px; z-index: 1000; width: 118px; display: none; left: 64px;">
    <div class="droplist" style="position: relative; overflow: auto; min-height: 150px; height: 150px;text-align: left;">
       <div class="list-item  {if condition='!isset($info.saler) || 0 eq $info.saler'} selected {/if}" value="0" title="(空)">(空)</div>
       {volist name="staff" id ="vo"}
       <div class="list-item  {if condition='isset($info.saler) && $vo.id eq $info.saler'} selected {/if}" value="{$vo.id}" title="{$vo.name}">{$vo.name}</div>
       {/volist}
    </div>
    <div class="extra-list-ctn">
      <a href="javascript:void(0);" id="quickAddSales"
  class="quick-add-link full-width dib" style="text-align: left;"
  onclick="lopen('/admin/staff/add.html','新增职员', '400px', '300px','/admin/staff/save.html')"><i
  class="ui-icon-add tp6"></i>新增职员</a>
    </div>
</div>
<input type="hidden" id="staff_id"  {if condition='isset($info.by_admin)'} value="{$info.by_admin}" {else/} value="0" {/if} autocomplete="off" readonly="">
<script type="text/javascript">
  $(document).ready(function () {
        // 选择销售人员-弹窗
        $(".wrapper").on("click", "#choose_staff", function (e) {
          var top = $(this).offset().top;
          var left = $(this).offset().left;
          $("#staff_droplist_wrap").slideToggle();
           // $("#account_wrap").css({ "top": (top + 22) + "px", "left": (left - 158) + "px" })
       })
        //选择销售人员-赋值
        $("#staff_droplist_wrap .droplist").on("click", ".list-item", function (e) {

          var staff_title = $(this).attr("title");
          var staff_id = $(this).attr("value");
          //销售人员
          $("#staff_id").val(staff_id);
          $("#staff_name").val(staff_title);
          $("#staff_droplist_wrap").hide();
        });
    })
     //选择销售人员-选择框外点击则隐藏
     $(document).mouseup(function (e) {
      if(e.target.id!="choose_staff"){
            var con = $("#staff_droplist_wrap");   // 设置目标区域
            if (!con.is(e.target) && con.has(e.target).length === 0) {
              $("#staff_droplist_wrap").hide();
            }
        } 
    });
</script>